package com.qiumo.bills.controller;

import cn.hutool.core.date.DateUtil;

import java.util.Date;

public class Test {
    public static void main(String[] args) {
        Date date = DateUtil.date();
        //获得年的部分
        int year = DateUtil.year(date);
        //获得月份，从0开始计数
        int month = DateUtil.month(date) + 1;
        //获得月份枚举
        int i = DateUtil.dayOfMonth(date);
        System.out.println(month);
    }
}
